//
//  回原操作界面
//
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts

Item {
    id: manualReturnZeroBack
    width: 1800
    height: 670


    // Rectangle{      // 整体背景
    //     anchors.fill: parent
    //     color: "gold"

    //     Text{
    //         anchors.centerIn: parent
    //         font.pixelSize: 50
    //         font.bold: true
    //         text: qsTr("回原界面")
    //     }
    // }


    A_NumberKeyboard{
        id: manualReturnZeroKeyboard
        isDirectOverwrite: false
    }


    Column{
        anchors.horizontalCenter: parent.horizontalCenter
        Item{
            width: 1700
            height: 120

            Rectangle{
                width: 1600
                height: 2
                anchors.top: parent.top
                anchors.horizontalCenter: parent.horizontalCenter
                color: "black"
            }

            Rectangle{
                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
                width: 100
                radius: 30
                height: 100
                color: "gray"
                Rectangle{
                    anchors.left: parent.left
                    anchors.verticalCenter: parent.verticalCenter
                    width: 30
                    height: parent.height
                    color: "white"
                }
                Text{
                    anchors.right: parent.right
                    anchors.rightMargin: 20
                    anchors.verticalCenter: parent.verticalCenter
                    font.pixelSize: 20
                    font.bold: true
                    color: "white"
                    text: qsTr("上料")
                }
            }

            Row{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 130
                spacing: 30

                A_NumberInput{
                    keyboard: manualReturnZeroKeyboard
                }

                A_Button{
                    buttonWidth: 120
                    buttonHeight: 40
                    contentText_Data: qsTr("X回原")
                }
                A_NumberInput{
                    keyboard: manualReturnZeroKeyboard
                }
                A_Button{
                    buttonWidth: 120
                    buttonHeight: 40
                    contentText_Data: qsTr("Y回原")
                }
                A_NumberInput{
                    keyboard: manualReturnZeroKeyboard
                }
                A_Button{
                    buttonWidth: 120
                    buttonHeight: 40
                    contentText_Data: qsTr("Z回原")
                }
            }


            Rectangle{
                width: 1600
                height: 1
                anchors.bottom: parent.bottom
                anchors.horizontalCenter: parent.horizontalCenter
                color: "black"
            }
        }
        Item{
            width: 1700
            height: 120

            Rectangle{
                width: 1600
                height: 1
                anchors.top: parent.top
                anchors.horizontalCenter: parent.horizontalCenter
                color: "black"
            }

            Rectangle{
                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
                width: 100
                radius: 30
                height: 100
                color: "gray"

                Rectangle{
                    anchors.left: parent.left
                    anchors.verticalCenter: parent.verticalCenter
                    width: 30
                    height: parent.height
                    color: "white"
                }

                Text{
                    anchors.right: parent.right
                    anchors.rightMargin: 20
                    anchors.verticalCenter: parent.verticalCenter
                    font.pixelSize: 20
                    font.bold: true
                    color: "white"
                    text: qsTr("钻铣")
                }

            }


            Row{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 130
                spacing: 30

                A_NumberInput{
                    keyboard: manualReturnZeroKeyboard
                }
                A_Button{
                    buttonWidth: 120
                    buttonHeight: 40
                    contentText_Data: qsTr("X1回原")
                }
                A_NumberInput{
                    keyboard: manualReturnZeroKeyboard
                }
                A_Button{
                    buttonWidth: 120
                    buttonHeight: 40
                    contentText_Data: qsTr("Y1回原")
                }
                A_NumberInput{
                    keyboard: manualReturnZeroKeyboard
                }
                A_Button{
                    buttonWidth: 120
                    buttonHeight: 40
                    contentText_Data: qsTr("Z1回原")
                }
            }



            Rectangle{
                width: 1600
                height: 1
                anchors.bottom: parent.bottom
                anchors.horizontalCenter: parent.horizontalCenter
                color: "black"
            }
        }
        Item{
            width: 1700
            height: 120

            Rectangle{
                width: 1600
                height: 1
                anchors.top: parent.top
                anchors.horizontalCenter: parent.horizontalCenter
                color: "black"
            }

            Rectangle{
                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
                width: 100
                radius: 30
                height: 100
                color: "gray"

                Rectangle{
                    anchors.left: parent.left
                    anchors.verticalCenter: parent.verticalCenter
                    width: 30
                    height: parent.height
                    color: "white"
                }

                Text{
                    anchors.right: parent.right
                    anchors.rightMargin: 20
                    anchors.verticalCenter: parent.verticalCenter
                    font.pixelSize: 20
                    font.bold: true
                    color: "white"
                    text: qsTr("角码")
                }

            }


            Row{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 130
                spacing: 30

                A_NumberInput{
                    keyboard: manualReturnZeroKeyboard
                }
                A_Button{
                    buttonWidth: 120
                    buttonHeight: 40
                    contentText_Data: qsTr("X1回原")
                }
                A_NumberInput{
                    keyboard: manualReturnZeroKeyboard
                }
                A_Button{
                    buttonWidth: 120
                    buttonHeight: 40
                    contentText_Data: qsTr("Y1回原")
                }
                A_NumberInput{
                    keyboard: manualReturnZeroKeyboard
                }
                A_Button{
                    buttonWidth: 120
                    buttonHeight: 40
                    contentText_Data: qsTr("Z1回原")
                }
            }


            Rectangle{
                width: 1600
                height: 1
                anchors.bottom: parent.bottom
                anchors.horizontalCenter: parent.horizontalCenter
                color: "black"
            }
        }
        Item{
            width: 1700
            height: 120

            Rectangle{
                width: 1600
                height: 1
                anchors.top: parent.top
                anchors.horizontalCenter: parent.horizontalCenter
                color: "black"
            }

            Rectangle{
                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
                width: 100
                radius: 30
                height: 100
                color: "gray"

                Rectangle{
                    anchors.left: parent.left
                    anchors.verticalCenter: parent.verticalCenter
                    width: 30
                    height: parent.height
                    color: "white"
                }

                Text{
                    anchors.right: parent.right
                    anchors.rightMargin: 20
                    anchors.verticalCenter: parent.verticalCenter
                    font.pixelSize: 20
                    font.bold: true
                    color: "white"
                    text: qsTr("锯切")
                }

            }

            Row{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 130
                spacing: 30

                A_NumberInput{
                    keyboard: manualReturnZeroKeyboard
                }
                A_Button{
                    buttonWidth: 120
                    buttonHeight: 40
                    contentText_Data: qsTr("X1回原")
                }
                A_NumberInput{
                    keyboard: manualReturnZeroKeyboard
                }
                A_Button{
                    buttonWidth: 120
                    buttonHeight: 40
                    contentText_Data: qsTr("Z-左回原")
                }
                A_NumberInput{
                    keyboard: manualReturnZeroKeyboard
                }
                A_Button{
                    buttonWidth: 120
                    buttonHeight: 40
                    contentText_Data: qsTr("Z-右回原")
                }
            }


            Rectangle{
                width: 1600
                height: 1
                anchors.bottom: parent.bottom
                anchors.horizontalCenter: parent.horizontalCenter
                color: "black"
            }
        }
        Item{
            width: 1700
            height: 120

            Rectangle{
                width: 1600
                height: 1
                anchors.top: parent.top
                anchors.horizontalCenter: parent.horizontalCenter
                color: "black"
            }

            Rectangle{
                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
                width: 100
                radius: 30
                height: 100
                color: "gray"

                Rectangle{
                    anchors.left: parent.left
                    anchors.verticalCenter: parent.verticalCenter
                    width: 30
                    height: parent.height
                    color: "white"
                }

                Text{
                    anchors.right: parent.right
                    anchors.rightMargin: 20
                    anchors.verticalCenter: parent.verticalCenter
                    font.pixelSize: 20
                    font.bold: true
                    color: "white"
                    text: qsTr("下料")
                }

            }


            Row{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 130
                spacing: 30

                A_NumberInput{
                    keyboard: manualReturnZeroKeyboard
                }
                A_Button{
                    buttonWidth: 120
                    buttonHeight: 40
                    contentText_Data: qsTr("X回原")
                }
            }

            Rectangle{
                width: 1600
                height: 2
                anchors.bottom: parent.bottom
                anchors.horizontalCenter: parent.horizontalCenter
                color: "black"
            }
        }
    }

}
